package com.chuangsi.project.admin.dto.app.index;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author wangshengming
 * @date 2023/4/6
 */
@Data
public class MonthSalesAmountDto {

    @ApiModelProperty(value = "当月销售额")
    private BigDecimal monthSalesAmount;

    @ApiModelProperty(value = "上月销售额")
    private BigDecimal lastMonthSalesAmount;

    @ApiModelProperty(value = "环比",notes = "环比增长率 = [(今日数值 - 昨日数值) / 昨日数值] × 100%")
    private String DoD;


    public MonthSalesAmountDto(BigDecimal monthSalesAmount, BigDecimal lastMonthSalesAmount, String doD) {
        this.monthSalesAmount = monthSalesAmount;
        this.lastMonthSalesAmount = lastMonthSalesAmount;
        this.DoD = doD;
    }
}
